package com.nes.springcloud.service;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wdq on 17-6-1.
 */
@Component
public class ComputeClientHystrix implements ComputeClient {

    @Override
    public String getResult(@RequestParam(value = "a") Integer a,@RequestParam(value = "b") Integer b) {
        return "计算 ("+a+"+"+b+") error...";
    }
}
